<template>
    <div>
        资源管理
        <input type="text" v-model="name">
        <keep-alive include="inp2">
            <input2 v-if="isIn" ></input2>
        </keep-alive>
        <button @click="isIn = !isIn ">切换</button>
        <dia @sendParent="jieshou"></dia>
    </div>
</template>

<script>
import dia from '../../components/input/inp.vue'
import input2 from '../../components/input/inp2.vue'
export default {
    name:'resource',
    data() {
        return {
            name: 'yhx',
            isIn: true,
        };
    },
    methods:{
        jieshou(data){
            console.log(data)
        }
    },
    components: {
        dia,
        input2
    },
    activated(){
        console.log("activated...B")
    },
    deactivated(){
        console.log("deactivated...B")
    }
}
</script>

<style scoped lang="scss">

</style>
